package my.study.java.rmi.impl;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import my.study.java.rmi.IHello;

public class HelloImpl extends UnicastRemoteObject implements IHello {

    public HelloImpl() throws RemoteException {
        super();
    }

    public String sayHello(int i) {
        System.out.println("sayHello:" + i);
        return "Hello " + i;
    }

}
